package mini.expr;

import java.util.List;
import java.util.LinkedList;

import mini.Env;


public class Number extends Expr {

    private Integer value;

    public Number(int n) {
        value = new Integer(n);
    }

    public Number(Integer n) {
        value = n;
    }

    public Element eval(List<Env> listOfEnvs, LinkedList var) {
        return new Element(value);
    }
    
    public String toString() {
    	System.out.println( "In Number.toString()" );
    	return "[Ident value=" + value + "]";
    }
}
